-- GENERATED SPELL FOR [Smoldering Construct Attacker] --


function spell0_33017(pUnit, Event) --@Backlash,Self--
pUnit:FullCastSpellOnTarget(51439,pUnit)
pUnit:RegisterEvent('Sorts_33017', 6322, 1)
end

function Sorts_33017(pUnit, Event)
local choix_sorts_33017 = math.random(0, 0)
if choix_sorts_33017 == 0 then
pUnit:RegisterEvent('spell0_33017', 1, 1)
end
end

function mob33017_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33017', math.random(1500, 3000), 1)
end

function mob33017_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33017_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33017_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33017, 1, 'mob33017_Action')
RegisterUnitEvent(33017, 2, 'mob33017_Leave')
RegisterUnitEvent(33017, 3, 'mob33017_Kill')
RegisterUnitEvent(33017, 4, 'mob33017_Die')
